package com.terheyden.pluginImplDemo;

import com.terheyden.pluginLoaderDemo.plugins.api.AppEnvironment;
import com.terheyden.pluginLoaderDemo.plugins.api.Plugin;

/**
 * Simple test plugin implementation.
 */
public class PluginImpl implements Plugin {

    /**
     * Called by the hosting app on startup.
     * @param env can be used to do neat stuff with the hosting app's resources
     */
    @Override
    public void load(AppEnvironment env) {
        env.say("Sample plugin is loaded!");
        env.say("2 + 2 = " + env.add(2, 2));
    }

}
